package xyz.maxwells.bigdata.service;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.domain.Specification;
import xyz.maxwells.bigdata.domain.data.Comment;

import java.util.List;

/**
 * Created by wuzusheng on 2018/5/13.
 */
public interface CommentService {
    List<Comment>findByTableName(String tableName, Sort sort);
    List<Comment>findByUserName(String userName);
    void delete(Long id);
    void save(Comment comment);
    Comment findone(Long id);
    Page<Comment> list(Specification<Comment> spec, Pageable pageable);
}
